﻿@using Topro.Entity.Enum;
@model Topro.Entity.Response.IQS.UIIQSResponse
@{
    Layout = "~/Views/Shared/_Dialog.cshtml";
}
<style>
    .header{position: height: 60px;background:#fff;}
    .position{width: 100%;z-index: 10; background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.15);}
    .console {
        position: fixed;
        position: fixed;
        position: static\9 \0;
        top: -2px;
        z-index: 11;
        padding: 5px;
        line-height: 25px;
        height: 100%;
        background-color: #f5f5f5;
        font-family: Courier New !important;
        font-size: 14px !important;
        border: 1px solid #ccc;
        padding: 5px;
        overflow: auto;
        margin: 5px 0;
        color: #000;
    }
    .tips {
        padding: 10px;
        border: 1px solid #E6E6FA;
        border-radius: 4px;
        text-align: center
    }
    .tips-success {
        color: #FF4500;
        background-color: #F5F5F5;
    }
    .tips-black {
        color: #000000;
    }

    .form-control {
        display: block;
        width: 100%;
        height: 35px;
        padding: 6px 12px;
        font-size: 16px;
        line-height: 1.5;
        color: #555;
        background-color: #fff;
        background-image: none;
        border: 2px solid #E5E6E7;
        border-radius: 4px;
        -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%);
        box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%);
        -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
        -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    }
</style>
<section class="container-fluid">
<table class="">
    <thead>
        <tr>
            <td width="40%">
                <div class="form-group">
                    <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Plant Num 厂号：</label>
                    <div class="wd400">
                        <input class="form-control" type="text" name="plntNum" maxlength="40" value="@(Model.PartNum)" autocomplete="off" placeholder="长度必须介于 2 和 40 之间">
                    </div>
                </div>
            </td>
            <td width="40%">
                <div class="form-group">
                    <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Staff Num 员工号：</label>
                    <div class="wd400">
                        <input class="form-control" type="text" name="staffNum" maxlength="40" value="" autocomplete="off" placeholder="员工号">
                    </div>
                </div>
            </td>
            <td>
                
            </td>
        </tr>
    </thead>
    <tbody>

    </tbody>
</table>
</section>
<section class="container-fluid">
    <div class="row ">
        <form class="form-horizontal m15_t" id="form" onsubmit="return false;">
            <input type="hidden" id="Id" name="Id" value="">
            <div class="col-md-9 case">
                <div class="col-md-6">

                    <div class="tab-content">
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Plant Num 厂号：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="plntNum" maxlength="40" value="@(Model.PartNum)" autocomplete="off" placeholder="长度必须介于 2 和 40 之间">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Staff Num 员工号：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="staffNum" maxlength="40" value="" autocomplete="off" placeholder="员工号">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Shift Num 班次：</label>
                            <div class="wd400">
                                <select name="shiftNum" class="form-control">
                                    <option value="">选择班次</option>
                                    @{
                                        foreach(var item in Model.ShiftNum)
                                        {
                                            <option value="@(item.Key)">@(item.Value)</option>
                                        }
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Equipment Code 设备编码：</label>
                            <div class="input-group wd400">
                                <input class="form-control" type="text" name="equipmentCode" maxlength="40" value="@(Model.EquipmentCode)" autocomplete="off" placeholder="设备编码长度必须介于 2 和 40 之间">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Lot 批号(上条码)：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="lotBatch" maxlength="128" value="" autocomplete="off" placeholder="批号(上条码)长度">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Part Num 料号：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="partNum" maxlength="40" value="" autocomplete="off" placeholder="料号长度">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Heap Number 叠合次数号：</label>
                            <div class="input-group wd400">
                                <input class="form-control" type="text" name="heapNumber" maxlength="40" value="" autocomplete="off" placeholder="叠合次数号">
                                <span class="input-group-addon" data-modal="/Default/Select?Type=70" data-title="叠合次数号" data-width="452" data-height="650" data-bottom="remove">
                                    <i class="glyphicon glyphicon-search"></i>
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Material Type 材料类型：</label>
                            <div class="input-group wd400">
                                <input class="form-control" type="text" name="materialType" maxlength="40" value="" autocomplete="off" placeholder="材料类型">
                                <span class="input-group-addon" data-modal="/Default/Select?Type=80" data-title="材料类型" data-width="452" data-height="650" data-bottom="remove">
                                    <i class="glyphicon glyphicon-search"></i>
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label">物料/程式信息(下条码)：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="programbarCode" maxlength="128" value="" autocomplete="off" placeholder="物料/程式信息(下条码)">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label">下条码扫描提示信息：</label>
                            <div class="wd400">
                                <div class="tips tips-success barCode" role="alert">流程卡物料/程式条形码还未扫描</div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Press Program 压合程式：</label>
                            <div class="input-group wd400">
                                <input class="form-control" type="text" name="pressProgram" maxlength="40" value="" autocomplete="off" placeholder="Press Program 压合程式">
                                <span class="input-group-addon" data-modal="/Default/Select?Type=90" data-title="压合程式" data-width="452" data-height="650" data-bottom="remove">
                                    <i class="glyphicon glyphicon-search"></i>
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Cu Foil Num 铜箔编号：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="cuFoilNum" maxlength="40" value="" autocomplete="off" placeholder="Cu Foil Num 铜箔编号">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Cu Foil Batch 铜箔批号：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="cuFoilBatch" maxlength="40" value="" autocomplete="off" placeholder="Cu Foil Batch 铜箔批号">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Cu Foil Expire 铜箔有效期：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="cuFoilExpire" maxlength="40" value="" autocomplete="off" placeholder="Cu Foil Expire 铜箔有效期">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label">PP 半固化片种类数：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppTypeNumber" maxlength="40" value="" autocomplete="off" placeholder="" disabled>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>PP 半固化片数量：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppNumber" maxlength="40" value="" autocomplete="off" placeholder="PP 半固化片数量">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Postponed Material1零包OR整包：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterialType1" class="form-control">
                                    <option value=""></option>
                                    <option value="">整包</option>
                                    <option value="">零包</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">Package Num包号1_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="packageNum1_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">Package Num包号1_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="packageNum1_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 料号1_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfPartNum1_1" maxlength="128" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 料号1_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfPartNum1_2" maxlength="128" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 批号1_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfBatchNum1_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 批号1_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfBatchNum1_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 有效期1_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfExpire1_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 有效期1_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfExpire1_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">Postponed Material延期材料1_1：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterial1_1" class="form-control">
                                    <option value=""></option>
                                    @{
                                        foreach(var item in Model.PostponedMaterial1)
                                        {
                                            <option value="@(item.Key)">@(item.Value)</option>
                                        }
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">Postponed Material延期材料1_2：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterial1_2" class="form-control">
                                    <option value=""></option>
                                    @{
                                        foreach(var item in Model.PostponedMaterial1)
                                        {
                                            <option value="@(item.Key)">@(item.Value)</option>
                                        }
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Postponed Material2零包OR整包：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterialType2" class="form-control">
                                    <option value=""></option>
                                    <option value="">整包</option>
                                    <option value="">零包</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">Package Num包号2_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="packageNum2_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">Package Num包号2_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="packageNum2_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 料号2_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfPartNum2_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 料号2_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfPartNum2_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 批号2_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfBatchNum2_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 批号2_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfBatchNum2_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 有效期2_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfExpire2_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 有效期2_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfExpire2_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">Postponed Material延期材料2_1：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterial_1" class="form-control">
                                    <option value=""></option>
                                    @{
                                        foreach(var item in Model.PostponedMaterial1)
                                        {
                                            <option value="@(item.Key)">@(item.Value)</option>
                                        }
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">Postponed Material延期材料2_2：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterial2_2" class="form-control">
                                    <option value=""></option>
                                    @{
                                        foreach(var item in Model.PostponedMaterial1)
                                        {
                                            <option value="@(item.Key)">@(item.Value)</option>
                                        }
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Book Buildup Structure满本结构：</label>
                            <div class="input-group wd400">
                                <input class="form-control" type="text" name="bookBuildupStructure" maxlength="40" value="" autocomplete="off" placeholder="">
                                <span class="input-group-addon" data-modal="/Default/Select?Type=250" data-title="满本结构" data-width="452" data-height="650" data-bottom="remove">
                                    <i class="glyphicon glyphicon-search"></i>
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>1.5mm Plate 垫厚钢板数：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="plateNum" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Panel Quan 板数：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="panelQuan" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Secion Quan 含切片的板数：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="secionQuan" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Alpha Board Stay Time棕化停留时间：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="alphaBoardStayTime" maxlength="2" autocomplete="off" placeholder="棕化停留时间(正整数)">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Stopper Quality 防滑质量：</label>
                            <div class="input-group wd400">
                                <select name="StopperQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Perpreg Surface Quality 表面质量：</label>
                            <div class="input-group wd400">
                                <select name="PerpregSurfaceQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>14 Pcs Kraft Quality 14张牛皮纸数量：</label>
                            <div class="input-group wd400">
                                <select name="PcsKraftQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Inner Core Quality 内层芯板质量：</label>
                            <div class="input-group wd400">
                                <select name="InnerCoreQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Copper Foil Quality 铜箔质量：</label>
                            <div class="input-group wd400">
                                <select name="CopperFoilQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Abnormal Steel Plate Quantity异常钢板数量：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="abnormalSteelPlateQuantity" maxlength="2" autocomplete="off" placeholder="异常钢板数量(正整数)">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label">备注：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="abnormalSteelPlateQuantity" maxlength="64" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"></label>
                            <div class="wd400">
                                <button class="btn btn-primary wd400 save">Insert New 加入新记录</button>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"></label>
                            <div class="wd400">
                                <button class="btn btn-default wd400 cancel">Reseet Fields重新设定</button>
                            </div>
                        </div>
                    </div>

                </div>
                <!--二-->
                <div class="col-md-6">
                
                    <div class="tab-content">
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Plant Num 厂号：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Staff Num 员工号：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Shift Num 班次：</label>
                            <div class="wd400">
 
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Equipment Code 设备编码：</label>
                            <div class="input-group wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Lot 批号(上条码)：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Part Num 料号：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Heap Number 叠合次数号：</label>
                            <div class="input-group wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Material Type 材料类型：</label>
                            <div class="input-group wd400">

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label">物料/程式信息(下条码)：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label">下条码扫描提示信息：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Press Program 压合程式：</label>
                            <div class="input-group wd400">

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Cu Foil Num 铜箔编号：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Cu Foil Batch 铜箔批号：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Cu Foil Expire 铜箔有效期：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label">PP 半固化片种类数：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>PP 半固化片数量：</label>
                            <div class="wd400">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Postponed Material1零包OR整包：</label>
                            <div class="input-group wd400">

                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">Package Num包号1_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="packageNum1_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">Package Num包号1_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="packageNum1_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 料号1_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfPartNum1_1" maxlength="128" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 料号1_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfPartNum1_2" maxlength="128" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 批号1_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfBatchNum1_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 批号1_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfBatchNum1_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 有效期1_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfExpire1_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">PP/PCF 有效期1_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfExpire1_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">Postponed Material延期材料1_1：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterial1_1" class="form-control">
                                    <option value=""></option>
                                    @{
                                        foreach(var item in Model.PostponedMaterial1)
                                        {
                                            <option value="@(item.Key)">@(item.Value)</option>
                                        }
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#DBDFE1">
                            <label class="wd250 control-label">Postponed Material延期材料1_2：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterial1_2" class="form-control">
                                    <option value=""></option>
                                    @{
                                        foreach(var item in Model.PostponedMaterial1)
                                        {
                                            <option value="@(item.Key)">@(item.Value)</option>
                                        }
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Postponed Material2零包OR整包：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterialType2" class="form-control">
                                    <option value=""></option>
                                    <option value="">整包</option>
                                    <option value="">零包</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">Package Num包号2_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="packageNum2_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">Package Num包号2_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="packageNum2_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 料号2_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfPartNum2_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 料号2_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfPartNum2_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 批号2_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfBatchNum2_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 批号2_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfBatchNum2_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 有效期2_1：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfExpire2_1" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">PP/PCF 有效期2_2：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="ppPcfExpire2_2" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">Postponed Material延期材料2_1：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterial_1" class="form-control">
                                    <option value=""></option>
                                    @{
                                        foreach(var item in Model.PostponedMaterial1)
                                        {
                                            <option value="@(item.Key)">@(item.Value)</option>
                                        }
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="background-color:#C8E2F4">
                            <label class="wd250 control-label">Postponed Material延期材料2_2：</label>
                            <div class="input-group wd400">
                                <select name="postponedMaterial2_2" class="form-control">
                                    <option value=""></option>
                                    @{
                                        foreach(var item in Model.PostponedMaterial1)
                                        {
                                            <option value="@(item.Key)">@(item.Value)</option>
                                        }
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Book Buildup Structure满本结构：</label>
                            <div class="input-group wd400">
                                <input class="form-control" type="text" name="bookBuildupStructure" maxlength="40" value="" autocomplete="off" placeholder="">
                                <span class="input-group-addon" data-modal="/Default/Select?Type=250" data-title="满本结构" data-width="452" data-height="650" data-bottom="remove">
                                    <i class="glyphicon glyphicon-search"></i>
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>1.5mm Plate 垫厚钢板数：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="plateNum" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Panel Quan 板数：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="panelQuan" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Secion Quan 含切片的板数：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="secionQuan" maxlength="40" value="" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Alpha Board Stay Time棕化停留时间：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="alphaBoardStayTime" maxlength="2" autocomplete="off" placeholder="棕化停留时间(正整数)">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Stopper Quality 防滑质量：</label>
                            <div class="input-group wd400">
                                <select name="StopperQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Perpreg Surface Quality 表面质量：</label>
                            <div class="input-group wd400">
                                <select name="PerpregSurfaceQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>14 Pcs Kraft Quality 14张牛皮纸数量：</label>
                            <div class="input-group wd400">
                                <select name="PcsKraftQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Inner Core Quality 内层芯板质量：</label>
                            <div class="input-group wd400">
                                <select name="InnerCoreQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Copper Foil Quality 铜箔质量：</label>
                            <div class="input-group wd400">
                                <select name="CopperFoilQuality" class="form-control">
                                    <option value=""></option>
                                    <option value="OK">OK</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"><span class="WdateFmtErr">*</span>Abnormal Steel Plate Quantity异常钢板数量：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="abnormalSteelPlateQuantity" maxlength="2" autocomplete="off" placeholder="异常钢板数量(正整数)">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label">备注：</label>
                            <div class="wd400">
                                <input class="form-control" type="text" name="abnormalSteelPlateQuantity" maxlength="64" autocomplete="off" placeholder="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"></label>
                            <div class="wd400">
                                <button class="btn btn-primary wd400 save">Insert New 加入新记录</button>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="wd250 control-label"></label>
                            <div class="wd400">
                                <button class="btn btn-default wd400 cancel">Reseet Fields重新设定</button>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            <div class="col-md-3">
@*                <div class="position">
                    <div class="console">
                        提醒：
                        在线新料号，请注意生产参数确认！
                        没有尺寸的相关信息/没有压合程式信息，请按照流程卡生
                        产！
                        请注意右边工程师设定！
                        请通知备料确认铜箔是否正确！
                    </div>
                </div>*@
            </div>
        </form>
    </div>
    
</section>
@section footerScript{
    <script type="text/javascript">

        var cuFoilNum = "";
        //PP 半固化片种类数
        var ppTypeNumberA = 0;
        //PP/PCF料号PPPartNo
        var LOTPPRCFPartNum1 = "";
        var LOTPPRCFPartNum2 = "";

        $(function () {
            //设备编码
            $(".equipmentCode").click(function () {
                Topro.UI.Confirm({});
            });

            //Lot 批号(上条码)
            $("input[name='lotBatch']").keydown(function (e) {

                if (e.keyCode == 13) {

                    //验证
                    var plntNum = $("input[name='plntNum']").val();
                    var staffNum = $("input[name='staffNum']").val();
                    var shiftNum = $("select[name='shiftNum']").find("option:selected").val();;
                    var equipmentCode = $("input[name='equipmentCode']").val();

                    if(Topro.Util.isNullOrEmptySpance(plntNum)){
                        Topro.UI.Tip_short_warning("厂号不能为空." );
                        return false;
                    }

                    if(Topro.Util.isNullOrEmptySpance(staffNum)){
                        Topro.UI.Tip_short_warning("员工号不能为空." );
                        return false;
                    }

                    if(Topro.Util.isNullOrEmptySpance(shiftNum)){
                        Topro.UI.Tip_short_warning("请选择班次." );
                        return false;
                    }

                    if(Topro.Util.isNullOrEmptySpance(equipmentCode)){
                        Topro.UI.Tip_short_warning("设备编码不能为空." );
                        return false;
                    }

                    var data = {
                        content: $(this).val()
                    };

                    Topro.Util.Ajax({
                        type: "POST",
                        url: "/Default/LotBatch",
                        data: data,
                        success: function (res) {
                            if (res.success) {
                                $("input[name='lotBatch']").val(res.data[0]);
                                $("input[name='partNum']").val(res.data[1]);
                                $("input[name='heapNumber']").val(res.data[2]);
                                $("input[name='materialType']").val("Cu_pp");
                                //获取焦点
                                $("input[name='programbarCode']").focus();
                            } else {
                                Topro.UI.Tip_short_warning("操作失败！" + res.message);
                            }
                        },
                        error: function (json) {
                            Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                        }
                    });

                    return false;
                }
            });

            //物料/程式信息(下条码)
            $("input[name='programbarCode']").keydown(function (event) {

                if (event.which == 13) {

                    var content = $(this).val();

                    var data = {
                        content: content
                    };

                    //还原
                    ppTypeNumberA = 0;

                    Topro.Util.Ajax({
                        type: "POST",
                        url: "/Default/ProgrambarCode",
                        data: data,
                        success: function (res) {
                            if (res.success) {

                                $(".barCode").html(content);
                                //铜箔编号
                                cuFoilNum = res.data[0];
                                //LOT料号1
                                LOTPPRCFPartNum1 = res.data[1];
                                //LOT料号2
                                LOTPPRCFPartNum2 = res.data[2];

                                var ppTypeNumberAReg = new RegExp("^000000");
                                if (!ppTypeNumberAReg.test(LOTPPRCFPartNum1)) {
                                    ppTypeNumberA++;
                                }

                                var ppTypeNumberBReg = new RegExp("^000000");
                                if (!ppTypeNumberBReg.test(LOTPPRCFPartNum2)) {
                                    ppTypeNumberA++;
                                }

                                if(ppTypeNumberA != 0){
                                    $("input[name='ppTypeNumber']").val(ppTypeNumberA);
                                }

                                $("input[name='pressProgram']").val(res.data[3]);
                                $("input[name='bookBuildupStructure']").val(res.data[4]);
                                
                                $("input[name='programbarCode']").val("");
                                //获取焦点
                                $("input[name='cuFoilNum']").focus();
                                
                            } else {
                                Topro.UI.Tip_short_warning("操作失败！" + res.message);
                            }
                        },
                        error: function (json) {
                            Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                        }
                    });

                    return false;
                }
                
            });
            //Cu Foil Num 铜箔编号
            $("input[name='cuFoilNum']").keydown(function (e) {

                if (e.keyCode == 13) {

                    var content = $(this).val();

                    var data = {
                        cuFoilNum:cuFoilNum,
                        content: content
                    };

                    Topro.Util.Ajax({
                        type: "POST",
                        url: "/Default/CuFoilNum",
                        data: data,
                        success: function (res) {
                            if (res.success) {
                                $("input[name='cuFoilNum']").val(res.data.cuFoilNum);
                                $("input[name='cuFoilBatch']").val(res.data.cuFoilBatch);
                                //获取焦点
                                $("input[name='cuFoilExpire']").focus();
                            } else {
                                $("input[name='cuFoilNum']").val("");
                                $("input[name='cuFoilBatch']").val("");
                                Topro.UI.Tip_short_warning("操作失败！" + res.message);
                            }
                        },
                        error: function (json) {
                            Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                        }
                    });

                    return false;
                }
                
            });
            //Cu Foil Expire 铜箔有效期
            $("input[name='cuFoilExpire']").keydown(function (e) {
                if (e.keyCode == 13) {
                    //获取焦点
                    $("input[name='ppNumber']").focus();
                    return false;
                }
            });
            //Cu Foil Expire 铜箔有效期
            $("input[name='cuFoilExpire']").blur(function (e) {

                var content = $(this).val();

                var data = {
                    content: content
                };

                Topro.Util.Ajax({
                    type: "POST",
                    url: "/Default/CuFoilExpire",
                    data: data,
                    success: function (res) {
                        if (res.success) {
                            //获取焦点
                            $("input[name='ppNumber']").focus();
                        } else {
                            $("input[name='cuFoilExpire']").val("");

                            Topro.UI.Tip_short_warning("操作失败！" + res.message);
                        }
                    },
                    error: function (json) {
                        Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                    }
                });

                return false;
            });
            //Package Num包号1_1
            $("input[name='packageNum1_1']").keydown(function (e) {
                if (e.keyCode == 13) {
                    var content = $(this).val();

                    var data = {
                        content: content
                    };

                    Topro.Util.Ajax({
                        type: "POST",
                        url: "/Default/packageNum1_1",
                        data: data,
                        success: function (res) {
                            if (res.success) {
                                $("input[name='packageNum1_1']").val(res.data[0]);
                                //获取焦点
                                $("input[name='ppPcfPartNum1_1']").focus();
                            } else {
                                $("input[name='packageNum1_1']").val("");
                                Topro.UI.Tip_short_warning("操作失败！" + res.message);
                            }
                        },
                        error: function (json) {
                            Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                        }
                    });

                    return false;
                }
            });
            //PP/PCF 料号1_1
            $("input[name='ppPcfPartNum1_1']").keydown(function (e) {

                if (e.keyCode == 13) {

                    var content = $(this).val();

                    var data = {
                        LOTPPRCFPartNum1:LOTPPRCFPartNum1,
                        content: content
                    };

                    Topro.Util.Ajax({
                        type: "POST",
                        url: "/Default/PpPcfPartNum1_1",
                        data: data,
                        success: function (res) {
                            if (res.success) {
                                $("input[name='ppPcfPartNum1_1']").val(res.data.ppPcfPartNum1);
                                $("input[name='ppPcfBatchNum1_1']").val(res.data.ppPcfBatchNum1);
                                //获取焦点
                                $("input[name='ppPcfExpire1_1']").focus();
                            } else {
                                Topro.UI.Tip_short_warning("操作失败！" + res.message);
                            }
                        },
                        error: function (json) {
                            Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                        }
                    });

                    return false;
                }
                
            });
            //PP/PCF 有效期1
            $("input[name='ppPcfExpire1_1']").keydown(function (e) {

                if (e.keyCode == 13) {

                    var content = $(this).val();

                    var data = {
                        content: content
                    };

                    Topro.Util.Ajax({
                        type: "POST",
                        url: "/Default/ppPcfExpire1_1",
                        data: data,
                        success: function (res) {
                            if (res.success) {
                                //获取焦点
                                $("input[name='postponedMaterial1']").focus();
                            } else {
                                Topro.UI.Tip_short_warning("操作失败！" + res.message);
                            }
                        },
                        error: function (json) {
                            Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                        }
                    });

                    return false;
                }
                
            });
            //Package Num包号2
            $("input[name='packageNum2']").keydown(function (e) {
                if (e.keyCode == 13) {
                    //获取焦点
                    $("input[name='ppPcfPartNum2']").focus();
                    return false;
                }
            });
            //PP/PCF 料号2
            $("input[name='ppPcfPartNum2']").keydown(function (e) {

                if (e.keyCode == 13) {

                    var content = $(this).val();

                    var data = {
                        LOTPPRCFPartNum2:LOTPPRCFPartNum2,
                        content: content
                    };

                    Topro.Util.Ajax({
                        type: "POST",
                        url: "/Default/PpPcfPartNum2",
                        data: data,
                        success: function (res) {
                            if (res.success) {
                                $("input[name='ppPcfPartNum2']").val(res.data[0]);
                                $("input[name='ppPcfBatchNum2']").val(res.data[1]);
                                //获取焦点
                                $("input[name='ppPcfExpire2']").focus();
                            } else {
                                Topro.UI.Tip_short_warning("操作失败！" + res.message);
                            }
                        },
                        error: function (json) {
                            Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                        }
                    });

                    return false;
                }
                
            });
            //PP/PCF 有效期2
            $("input[name='ppPcfExpire2']").keydown(function (e) {

                if (e.keyCode == 13) {

                    var content = $(this).val();

                    var data = {
                        content: content
                    };

                    Topro.Util.Ajax({
                        type: "POST",
                        url: "/Default/PpPcfExpire2",
                        data: data,
                        success: function (res) {
                            if (res.success) {
                                //获取焦点
                                $("input[name='postponedMaterial2']").focus();
                            } else {
                                Topro.UI.Tip_short_warning("操作失败！" + res.message);
                            }
                        },
                        error: function (json) {
                            Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                        }
                    });

                    return false;
                }
                
            });
            //Abnormal Steel Plate Quantity异常钢板数量
            $("input[name='alphaBoardStayTime']").blur(function (e) {

                    var content = $(that).val();

                    var data = {
                        content: content
                    };

                    Topro.Util.Ajax({
                        type: "POST",
                        url: "/Default/AbnormalSteelPlateQuantity",
                        data: data,
                        success: function (res) {
                            if (res.success) {
                                //$(that).val(res.data);
                            } else {
                                $(that).val("");
                                Topro.UI.Tip_short_warning("操作失败！" + res.message);
                            }
                        },
                        error: function (json) {
                            $(that).val("");
                            Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                        }
                    });

                    return false;

            });

            //Abnormal Steel Plate Quantity异常钢板数量
            $("input[name='abnormalSteelPlateQuantity']").blur(function (e) {

                var that  = this;

                var content = $(that).val();

                var data = {
                    content: content
                };

                Topro.Util.Ajax({
                    type: "POST",
                    url: "/Default/AbnormalSteelPlateQuantity",
                    data: data,
                    success: function (res) {
                        if (res.success) {
                            $(that).val(res.data);
                        } else {
                            $(that).val("");
                            Topro.UI.Tip_short_warning("操作失败！" + res.message);
                        }
                    },
                    error: function (json) {
                        $(that).val("");
                        Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                    }
                });
                return false;
                
            });
            //限制
            //员工限制
            $("input[name='staffNum']").blur(function (e) {

                var content = $(that).val();

                var data = {
                    content: content
                };

                Topro.Util.Ajax({
                    type: "POST",
                    url: "/Default/AbnormalSteelPlateQuantity",
                    data: data,
                    success: function (res) {
                        if (res.success) {
                            //$(that).val(res.data);
                        } else {
                            $(that).val("");
                            Topro.UI.Tip_short_warning("操作失败！" + res.message);
                        }
                    },
                    error: function (json) {
                        $(that).val("");
                        Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                    }
                });

                return false;

            });
            
            //Rotate Layup 旋转叠板
            $(".rotateLayup").click(function () {

                var cover = Topro.UI.Mask({
                    obj: $("body"),
                    opacity: 0.5
                });

                setTimeout(function () {
                    cover.Remove();
                }, 1000);
                
                return false;
            });
            //保存
            $(".save").click(function () {
                save();
            });
            //关闭
            $(".cancel").click(function () {

            });
        });

        function save()
        {
            //Topro.UI.DialogBox();
            Topro.UI.DialogBox({
                id: 'dialog_alert',
                title: '提示',
                parent: true,
                lock: true,
                fixed: true,
                padding: '20px 15px 20px 10px',
                ok: true,
                width: "200px",
                content: "asdfasdf",
                icon: "info"
            });
        }

        function saves() {

            var cover = Topro.UI.Mask({
                obj: $("body"),
                opacity: 0.5
            });

            var data = $("#form").serializeJSON();
            //料号1
            data.LOTPPRCFPartNum1 = LOTPPRCFPartNum1;
            //料号2
            data.LOTPPRCFPartNum2 = LOTPPRCFPartNum2;

            Topro.Util.Ajax({
                type: "POST",
                url: "/Default/SaveIQS",
                data: data,
                success: function (res) {
                    if (res.success) {
                        cover.Remove();
                        Topro.UI.Tip_success("操作成功！");
                    } else {
                        cover.Remove();
                        Topro.UI.Tip_short_warning("操作失败！" + res.message);
                    }
                },
                error: function (json) {
                    cover.Remove();
                    Topro.UI.Tip_warning("操作失败！请查看网络，请重试。");
                }
            });

        }
        
        function insertRow(obj) {

            if(obj.Type != undefined){
                switch(obj.Type)
                {
                    case 70:
                        $("input[name='heapNumber']").val(obj.Name);
                        break;
                    case 80:
                        $("input[name='materialType']").val(obj.Name);
                        break;
                    case 90:
                        $("input[name='pressProgram']").val(obj.Name);
                        break;
                    case 181:
                        $("input[name='postponedMaterial1']").val(obj.Name);
                        break;
                     case 221:
                        $("input[name='postponedMaterial2']").val(obj.Name);
                        break;
                    case 230:
                        $("input[name='plaeType']").val(obj.Name);
                        break;
                    case 250:
                        $("input[name='bookBuildupStructure']").val(obj.Name);
                        break;
                    case 280:
                        $("input[name='rotateLayup']").val(obj.Name);
                        break;
                }
            }

        }
    </script>
}